package com.example.consumer.controller;

import com.example.consumer.pojo.Order;
import com.example.consumer.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description: OrderServiceController <br>
 * date: 2021/5/25 11:55 <br>
 * author: xiehui <br>
 * version: 1.0 <br>
 */
@RestController
@RequestMapping("order")
public class OrderServiceController {
    @Autowired
    private OrderService orderService;

    @RequestMapping("/{id}")
    public Order selectOrderById(@PathVariable("id") String orderid) {
        return orderService.selectOrderById(orderid);
    }
}
